package com.kk.xhr.admin.controller.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * 权限树vo
 *
 * @author liujingcheng
 * @version 1.0, 2020/4/2 15:52
 * @since 1.0.0
 */
@ApiModel
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class PermissionTreeVO {
    @ApiModelProperty(value = "主键id", example = "1")
    private Long id;
    @ApiModelProperty(value = "父id", example = "1")
    private Long pid;
    @ApiModelProperty(value = "名字", example = "UserManager")
    private String name;
    @ApiModelProperty(value = "组件", example = "@/views/xhr/user/index")
    private String component;
    @ApiModelProperty(value = "路径", example = "/user")
    private String path;
    @ApiModelProperty(value = "是否隐藏", example = "true")
    private boolean hidden;
    @ApiModelProperty(value = "中文名字", example = "用户管理")
    private String title;
    private Meta meta;
    private List<PermissionTreeVO> children;
}
